import 'package:get/get.dart';
import 'package:xm_app/common/logger/LoggerUtil.dart';
import 'package:xm_app/model/VodDetails.dart';
import 'package:xm_app/widget/PlayListWidget.dart';

class PlayController extends GetxController {
  Vod vod = Get.arguments["vod"];
  int index = Get.arguments["index"];
  int fromIndex = Get.arguments["fromIndex"];

  @override
  void onInit() {
    super.onInit();
  }

  changeVideo(int fromIndex, int index) {
    logInfo("from $fromIndex index $index");
    this.index = index;
    this.fromIndex = fromIndex;
    update();
  }

  @override
  void onClose() {
    super.onClose();
    logDebug("PlayController onClose");
  }
}
